import { createApp } from "vue";
import App from "./App.vue";
import routes from "./router";
import { createPinia } from "pinia";
import "element-plus/dist/index.css";
import "vue-cropper/dist/index.css";
import "./assets/global.css";
import "./assets/root.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import { ElLoading, ElInfiniteScroll } from "element-plus";
// import Tres from "@tresjs/core";

const app = createApp(App);
const pinia = createPinia();

app
    // .use(Tres)
    .use(ElLoading).use(ElInfiniteScroll).use(pinia).use(routes).mount("#app");
